package com.ydd.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.ydd.dto.PageDTO;
import com.ydd.entity.SysRole;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    Page<SysRole> roleList(PageDTO dto);

    @Select("select * from sys_role where id=#{s}")
    SysRole getByRoled(String s);
}
